﻿<UserControl x:Class="Brjnk.Maps.TileTemplate"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:common="clr-namespace:Brjnk.Common.UI;assembly=Common"
             mc:Ignorable="d"
             Background="{Binding Background}"
>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="4*" />
        </Grid.RowDefinitions>

        <common:AutoScaleTextBlock TextBlock.FontWeight="Bold" Text="{Binding Header}" MinFontSize="10" MaxFontSize="60" TextBlock.Foreground="{Binding HeaderColor}" HorizontalAlignment="Center" />
        <Image Source="{Binding Icon}" />
        <TextBlock Grid.Row="2" Name="desc" Text="{Binding Text}" HorizontalAlignment="Center" />
    </Grid>
</UserControl>